package com.engine4cloud.tdf.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.education.dto.query.EduStudentQueryDTO;
import com.engine4cloud.tdf.education.dto.query.EduStudentTaskQueryDTO;
import com.engine4cloud.tdf.education.dto.result.EduStudentCourseResultDTO;
import com.engine4cloud.tdf.education.dto.result.EduStudentResultDTO;
import com.engine4cloud.tdf.education.dto.EduStudentDTO;
import com.engine4cloud.tdf.education.entity.EduStudentEntity;

import java.util.List;

public interface EduStudentService extends IService<EduStudentEntity> {

    PageInfo<EduStudentResultDTO> pageList(Params page, EduStudentQueryDTO dto);

    PageInfo<EduStudentCourseResultDTO> pageList(Params page, EduStudentTaskQueryDTO dto);

    EduStudentResultDTO getById(Long id);

    List<EduStudentResultDTO> findList(String groupCode);

    List<EduStudentResultDTO> findMutList(List<String> groupCode);

    void batchCreate(String groupCode, List<EduStudentDTO> list);

    void batchUpdate(String groupCode, List<EduStudentDTO> studentList);
}